<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> Svaka detail
</head>
<body>
    <p>Próf:  {{ exam.id }} {{ exam.name }}</p>


<form action=" {{ exam.id }}/vote/" method="post">
{% csrf_token %}
{% for choice in exam.choice_set.all %}
    <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
    <label for="choice{{ forloop.counter }}">{{ choice.choice }}</label><br />
{% endfor %}
<input type="submit" value="Vote" />
</form>


</body>
</html>